﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MapManager : MonoBehaviour {

    public GameObject mainMap;
    public GameObject routeMap;//回放路线使用的地图
    public GameObject guide;//主地图的导航组件

    private void Start()
    {
        CloseRoute();
    }

    public void ShowRouteMap()
    {
        MainComponent(false);
        routeMap.SetActive(true);
    }

    public void CloseRoute()
    {
        MainComponent(true);
        routeMap.SetActive(false);
    }

    private void MainComponent(bool isShow)
    {
        mainMap.SetActive(isShow);
        guide.SetActive(isShow);
    }
}
